package wfm.ws.payment.rest;

import javax.ws.rs.Consumes;
import javax.ws.rs.DefaultValue;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.MediaType;

import wfm.entities.Address;
import wfm.entities.Customer;
import wfm.entities.Ticket;

/**
 * <p>
 * REST (Representational State Transfer) Web-Service for payment.
 * Basic infos may be found at:
 * http://java.sun.com/developer/technicalArticles/WebServices/jax-rs/index.html
 * http://java.dzone.com/articles/putting-java-rest
 * </p>
 * <p>
 * Example-URI:<br />
 * http://localhost:63083/payment/payBill?firstName=Max&
 * lastName=Muster&....
 * </p>
 * 
 * @author David Bittermann
 */

@Produces({MediaType.APPLICATION_JSON, MediaType.TEXT_HTML, MediaType.TEXT_PLAIN, MediaType.WILDCARD})
@Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_ATOM_XML, MediaType.TEXT_HTML, MediaType.APPLICATION_XHTML_XML, MediaType.TEXT_PLAIN, MediaType.WILDCARD})
@Path("/payment")
public interface PaymentRESTService
{
	@GET
	@Path("payBill")
	public String payBill(@QueryParam("accountNr") String accountNr,
			@QueryParam("amount") String amount) throws WebApplicationException;
}
